const SYSTEM_INFO = uni.getSystemInfoSync();
export const getStatusBarHeight = () => SYSTEM_INFO.statusBarHeight || 0;
export const getTitleBarHeight = () => {
	if (uni.getMenuButtonBoundingClientRect) {
		console.log("uni.getMenuButtonBoundingClientRect 为true");
		let menu = uni.getMenuButtonBoundingClientRect();
		let titleBarHeight = menu.height + (menu.top - getStatusBarHeight() )*2;
		return titleBarHeight;
	}else {
		return 40; 
	}
}
export const getNavBarHeight = () => getStatusBarHeight() + getTitleBarHeight();